package s2elinshu;

public class J12Stock {

	public static void main(String[] args) {

		Stock a = new Stock();
		a.sname = "경영기술";
		a.previousClosingPrice = 1000000;
		a.currentPrice = 750000;

		System.out.println(a.sname);
		System.out.println(a.previousClosingPrice);
		System.out.println(a.currentPrice);
		System.out.println(a.getChangePercent());
	} // main 닫음
} // J12Stock class 닫음

class Stock{
	String sname;
	int previousClosingPrice;
	int currentPrice;
	String person;

	public double getChangePercent(){
		return((double)currentPrice/(double)previousClosingPrice);
	}
}